﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataAbstractorExample.Models
{
    public class Comment
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int CommentId { get; set; }

        [Required]
        public virtual Note Note { get; set; }

        [Required, MaxLength(100)]
        public string Message { get; set; }

        [MaxLength(30)]
        public string From { get; set; }
    }
}
